#ifndef FABRIC_TREE_ITEM_H
#define FABRIC_TREE_ITEM_H

#include "treeItem.h"
#include "src/fabric.h"

class FabricTreeItem : public TreeItem {
    public:
        FabricTreeItem(QTreeWidgetItem * = 0, Fabric * = 0);
        ~FabricTreeItem();

        unsigned int getType(){return FABRIC;};

        Fabric *getFabric(){return fabric;};

        void select(bool _b){fabric->select(_b);};

    private:
        Fabric *fabric;

        void updateParticles();
        void updateSprings();
};

#endif
